﻿/**********************************************
注销按钮。清除当前SESSION，重定位到LOGIN界面
 * 
 * 
 **************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CSM.Models;
using CSM.Controllers;

namespace CSM
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            string welcomeString = string.Format("欢迎 {0}", HttpContext.Current.Session[SystemVars.sysSessionUserId].ToString());
        }
        protected void LinkButton_ReLogin_Click(object sender, EventArgs e)
        {

            HttpContext.Current.Session.Clear();
            Response.Write("<script language=javascript>top.location.href='Login.aspx';</script>");
        }
    }
}
